package api.storage;

import java.rmi.Remote;
import java.util.List;

import api.Person;

/**
 * Interface provides storage and retrieve 
 * 
 * @author Ann Raboschuk
 */
public interface IDataStorage extends Remote
{
   /**
    * Method writes list of objects to specified storage.
    * 
    * @return list - list of read objects
    * @throws IOException
    */
   void save(List<Person> records) throws Exception;
   
   /**
    * Method retrieves stored list from storage.
    * 
    * @param list - list to be written to file
    * @throws IOException
    */
   List<Person> load() throws Exception;
}

